import random
pc = random.randint(1, 100)
print(pc)
# 用户猜测和while循环
user = int(input('请输入您猜测的数据'))
while True:
    if pc > user:
        print('您输入的值太小')
    elif pc < user:
        print(f'您输入的值太大')
    elif pc == user:
        print(f'您输入的值正确')
        break

print('欢迎下次来玩')


